#include "BrickT.h"

//#define BRICK_NUM	4
#define BRICK_NUM	10

BrickT::BrickT(void) : Brick(BRICK_NUM, BRICK_TYPE_T)
{
	init_brick();
}


BrickT::~BrickT(void)
{
	delete[] _coords;
}


void BrickT::init_brick()
{
	_coords = new int[AXIS_NUM * BRICK_NUM];
//	int coords[AXIS_NUM * BRICK_NUM] = {
//		-1, 0, 0,
//		0, 0, 0,
//		1, 0, 0,
//		0, -1, 0
//	};

		int coords[AXIS_NUM * BRICK_NUM] = {
			0, 2, 0,
			1, 2, 0,
			0, 1, 0,
			1, 1, 0,
			0, 0, 0,
			1, 0, 0,
			0, -1, 0,
			1, -1, 0,
			0, -2, 0,
			1, -2, 0,
		};

	memcpy(_coords, coords, sizeof(coords));
}